﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<html>
<head>

<%@include file="/WEB-INF/jsp/common/import-css.jsp" %>
	<script type="text/javascript" src="${ctx}/assets/js/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="${ctx}/assets/js/jquery.validate.min.js"></script>
    <script type="text/javascript" src="${ctx}/assets/js/jquery.validate.js"></script>
    <script type="text/javascript">

	$(function(){

		var path = window.location.pathname.split("/")[0];
		$("#press").click(function(){
			$.ajax({
				type:"POST",
				url: path+"/getmessage",
				data: {
					id:"123",
					psw:"123456"
				},
				dataType: "json",
				success:function(json){
					$("#user").val(json.adminId),
					$("#pass").val(json.adminPsw)
				},
				error:function(){
				}
			});
//			return false;
		});
	});

</script>
</head>

<body>


<form id="reg">
	账号：<input type="text" id="user" name="user"/><br/>
	密码：<input  type="text" id="pass" name="pass"/><br/>
	<input class="active" type="button" id="press" value="确认"/>
</form>

</body>
</html>